Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / TryGet Method / TryGet<T>(IPdfArray,Int32,T,Boolean) Method
The current array.
The index of the value to get.
OUT: The value at specified index.
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if value at the specified index can't be converted to the T.

In This Topic
    TryGet<T>(IPdfArray,Int32,T,Boolean) Method
    In This Topic
    Tries to get the value at the specified index. Note! This method returns IPdfRef if T is IPdfRef, otherwise the method resolves the reference and returns *actual* object.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGet(Of T As IPdfObject)( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByRef value As T, _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGet<T>( 
       IPdfArray array,
       System.int index,
       out T value,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    array
    The current array.
    index
    The index of the value to get.
    value
    OUT: The value at specified index.
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if value at the specified index can't be converted to the T.

    Type Parameters

    T

    Return Value

    true if successful; false otherwise.
    See Also